Skip to content

fix: properly set the sky textures, only during the day#382

Merged
JucanAndreiDaniel merged 1 commit into
mainfrom
bugfix/day-sky-texture
Jun 18, 2026
Merged

fix: properly set the sky textures, only during the day#382
JucanAndreiDaniel merged 1 commit into
mainfrom
bugfix/day-sky-texture

Conversation

@JucanAndreiDaniel

Copy link
Copy Markdown
Contributor

Summary

Sky textures for the day were set during the night

How to test

Set time to 23 and boot up

{
// all states that contain day sky layer dawn, evening and day 0 to 3
if (state.Time < 0.35 || state.Time > 0.65)
if (!(state.Time < 0.35) || !(state.Time > 0.65)) // set new textures only for day states

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is time really a value from 0...1? I thought it's an int from 0...23 or so? Can you please check? 0.65 is tough to read instead of e.g. 8am.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And yes, it was there before, but maybe you find a nicer solution now. 😁

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i want to handle this in a slightly bigger refactor, i don't like it either, this is just a quick fix for the modding weekend

@JaXt0r JaXt0r left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it. Move on.

@JucanAndreiDaniel JucanAndreiDaniel merged commit a1ff504 into main Jun 18, 2026
2 checks passed
@JucanAndreiDaniel JucanAndreiDaniel deleted the bugfix/day-sky-texture branch June 18, 2026 04:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants